package oop10;

/**
 * @author oldliu
 * @since 1.0
 */
//父类：机动车
//类的定义规范：按照三个顺序
//1：属性
//2: 构造方法
//3：成员方法：业务方法 ，set/get
public abstract class Vechile {
    //品牌和型号
    private String brand;
    private String series;
    //车牌
    private String licencePlate;
    //座位数
    private int seats;
    //租赁状态,false表示可以出租，true表示已出租
    private boolean state;
    //日租金
    private int price;
    //车辆类型，是轿车  还是 客车
    //private String type;
    //计算租金
    public abstract double calcMoney(int days);

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getLicencePlate() {
        return licencePlate;
    }

    public void setLicencePlate(String licencePlate) {
        this.licencePlate = licencePlate;
    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
